<!DOCTYPE html>
<html lang="" xml:lang="">
  <head>
    <title>庄闪闪的R语言手册</title>
    <meta charset="utf-8" />
    <meta name="author" content="😎 庄闪闪" />
    <meta name="date" content="2021-04-16" />
    <script src="personal_introduction_files/header-attrs/header-attrs.js"></script>
    <link rel="stylesheet" href="xaringan-themer.css" type="text/css" />
  </head>
  <body>
    <textarea id="source">
class: center, middle, inverse, title-slide

# 庄闪闪的R语言手册
### 😎 庄闪闪
### 2021-04-16

---







class: center middle

# 庄闪闪

--

&lt;center&gt;&lt;img src="avatar.jpg" height="300px" /&gt;&lt;/center&gt;

--

[github](https://github.com/liangliangzhuang)、[知乎](https://www.zhihu.com/people/zhuangshanshan)、[CSDN](https://blog.csdn.net/qq_37379316?spm=1011.2124.3001.5343)

---

### 自我介绍

.pull-left[
#### 历程

- 在读应用统计研究生（研二）——温州大学

- R语言爱好者（5年）
  - 统计学、机器学习、可视化、**深度学习**
  - Python、MySQL、SPSS、Eviews、Tableau

- 可靠性统计方向
  - 统计推断：退化数据、加速寿命试验数据
  
- [庄闪闪的R语言手册](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247493793&amp;idx=1&amp;sn=ac5653d10a318d71885e6b1ff3ed3a67&amp;chksm=ea271745dd509e53173998508ab53dad55d4e2acb22c78afee57ea57bc9950503fdb22bc00d7&amp;token=208976211&amp;lang=zh_CN#rd)（2020.08-至今）

]

.pull-right[
#### 最近喜报

[我校研究生在国际顶级期刊发表论文](https://mp.weixin.qq.com/s/QhtouKExa-HPVjiVgwgJYw)

&lt;center&gt;&lt;img src="2.png" height="290px" /&gt;&lt;/center&gt;
]

.footnote[Liangliang Zhuang, Ancha Xu* and Jihong Pang, "Product Reliability Analysis
Based on Interval Data with Batch Effects," in Reliability Engineering and
System Safety, 2021, 212: 107622.]


---

class: inverse center middle

# 个人总结

--

身段较低

--

比较**努力**

--

能力还行

--

**运气**不错

---

### 做公众号的初衷

.pull-left[
- **统计**像是工具（英语），**R语言**也是一个工具。

- &lt;span style="color: var(--text-bold-color); font-weight: bold;"&gt;记录笔记 + 分享知识 + 搭建技能树&lt;/span&gt;

- 拿国家奖学金 + 求职 + 申请博士 **加分！**

- 原创100+，粉丝xxx。


&lt;center&gt;&lt;img src="https://gitee.com/zhuang_liang_liang0825/other/raw/master/10341618448581_.pic.jpg" height="250px" /&gt;&lt;/center&gt;

]

.pull-right[

&lt;center&gt;&lt;img src="3.png" height="450px" /&gt;&lt;/center&gt;

]
---

class: inverse center middle

# 咱们公众号都分享啥呢？

--

```
前沿、高质量、保姆级教程
```

---

### 主要系列

&lt;center&gt;&lt;img src="https://gitee.com/zhuang_liang_liang0825/other/raw/master/image-20210415103754316.png" height="500px" /&gt;&lt;/center&gt;

---


.pull-left[
#### R语言数据科学

- 沟通文档
  - Rmarkdown入门教程：[推文](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247493762&amp;idx=1&amp;sn=b70a531122d0ee57fda44f0fbc9c742d&amp;chksm=ea271766dd509e70ab3ee360bd5a910751bda0822be9ea390269161f922dabcb0b04e849a55c&amp;token=208976211&amp;lang=zh_CN#rd)，[视频](https://www.bilibili.com/video/BV1ib4y1X7r9)
  - 幻灯片：[写轮眼(1)](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247489685&amp;idx=1&amp;sn=aa5bccb2afe9c3882d415e4ed17c5b48&amp;chksm=ea24e771dd536e6788cf8689009c469150998b58d4673c0453876f9c3b9854dbae385af33a2b&amp;scene=178&amp;cur_album_id=1684900703049138178#rd),[(2)](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247489789&amp;idx=1&amp;sn=94e8b76d45743e85db57a2b0ef417fcf&amp;chksm=ea24e719dd536e0fbec0d3ed94d4104f65e219ebd86f5a45a30d2ff2084cf5b0bddfe079852f&amp;scene=178&amp;cur_album_id=1684900703049138178#rd)、[beamer](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247488659&amp;idx=1&amp;sn=738cd20bfccf8936b5d969483d4f6891&amp;chksm=ea24eb77dd536261e9cc68eac635d66113ea2e296d3b5ed6280410771c0b956be1af64f52eee&amp;scene=178&amp;cur_album_id=1684900703049138178#rd)、[ppt](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247488738&amp;idx=1&amp;sn=b0d21bfe77d3c7c65d0c8df72c1694d0&amp;chksm=ea24eb06dd536210b1d1ed44d2dcb5214d106a787ace6b437549a450a83300e84b052c595a5b&amp;scene=178&amp;cur_album_id=1684900703049138178#rd)
  - 报告：[pdf、html、word](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247491656&amp;idx=1&amp;sn=2798ea1cbc564684ea55f1979cb7ebb0&amp;chksm=ea271facdd5096bac3ea709c64ed681ab44d7d2c288a41094ceac535a168b7c12a3aefcb047c&amp;scene=178&amp;cur_album_id=1684900703049138178#rd)、[CTeX](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247492028&amp;idx=1&amp;sn=9964f55b6cdc984f22620330e752226e&amp;chksm=ea271e58dd50974e35b274816cd9dde9cda3c0864487b187b4f2ac87c9773d782b02e5b28816&amp;scene=178&amp;cur_album_id=1684900703049138178#rd)
  - 书籍：[bookdwon](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247492971&amp;idx=1&amp;sn=b342777e1f1bf1d4a85cff0f20735491&amp;chksm=ea271a8fdd50939996772ee0a8e3bf1cb1f35b2361ef6c160011074464dc957a421e44cba1fe&amp;scene=178&amp;cur_album_id=1684900703049138178#rd)
  - 毕业论文：[thesisdown](https://github.com/ismayc/thesisdown)
  - 简历： [pagedown](https://github.com/rstudio/pagedown)
  
- 可视化
  - 可视化入门教程：[推文系列](https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzI1NjUwMjQxMQ==&amp;action=getalbum&amp;album_id=1476187590709002243&amp;scene=173&amp;from_msgid=2247491020&amp;from_itemidx=1&amp;count=3&amp;nolastread=1#wechat_redirect)，[视频教程](https://www.bilibili.com/video/BV1MA411p7VR)
  - ggplot2包及拓展包
    - [ggridges](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247488248&amp;idx=1&amp;sn=6b71d7adba5ea796fdfe8f49fe232d94&amp;chksm=ea24ed1cdd53640a1e30271584458097fce82a732f9d63ce2084dc63fbae6fb028fd7f813bb7&amp;scene=178&amp;cur_album_id=1476187590709002243#rd)、[ggpubr](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247485615&amp;idx=1&amp;sn=47ac21f131bf2ac6c90c50fb9fb7966b&amp;chksm=ea24f74bdd537e5d74f60919388f683dfe779fe8a2d11999e55e290d4bdb25c64e36cc74ccc1&amp;scene=178&amp;cur_album_id=1476187590709002243#rd)、[gghalves](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247486214&amp;idx=1&amp;sn=7ff5d7375c615d20cffea6329cccff37&amp;chksm=ea24f4e2dd537df4a5ebe66a441b2fb0ee0599a05a700e1d199f729c497a68857e8031cd2e61&amp;scene=178&amp;cur_album_id=1476187590709002243#rd)、[calendR](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247487814&amp;idx=1&amp;sn=aa58149b66ce8b6d1c6210ded418c71a&amp;chksm=ea24eea2dd5367b4a24a670b9e78d377f1506399be8dd0d0a35230407e3dc131f6b07ab3d9ca&amp;scene=178&amp;cur_album_id=1426711178356801540#rd)等
  - 可交互的图表
      - [plotly](https://plotly.com/r/)、[recharts](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247493035&amp;idx=1&amp;sn=de24d8c3b1c42a15f0679fee5becc7b7&amp;chksm=ea271a4fdd509359bf116a7ce85497daccd1aa46ab50ce66e60ab7247dea572ae94c4b88046b&amp;token=208976211&amp;lang=zh_CN#rd)、[ggvis](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247488405&amp;idx=1&amp;sn=271fc88b523e738a6a1d92504dbce330&amp;chksm=ea24ec71dd5365671bb66cbb50afdb0b00762b7581b9d3e5060a4b59021485364093f1c8b963&amp;token=208976211&amp;lang=zh_CN#rd)等
      
- 书籍学习:
  - [《R数据科学》](https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzI1NjUwMjQxMQ==&amp;action=getalbum&amp;album_id=1619465081568673792&amp;scene=173&amp;from_msgid=2247488291&amp;from_itemidx=1&amp;count=3&amp;nolastread=1#wechat_redirect) + [课后解答](https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzI1NjUwMjQxMQ==&amp;action=getalbum&amp;album_id=1619465081568673792&amp;scene=173&amp;from_msgid=2247488291&amp;from_itemidx=1&amp;count=3&amp;nolastread=1#wechat_redirect)
    - [tibble](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247488790&amp;idx=1&amp;sn=7d9bea14b8d5f65aa0d6f7f2243aba0a&amp;chksm=ea24eaf2dd5363e4aabf912c0bfea863d0929b37c4eb26ebf0c64c4c13b851445128e40c8ed1&amp;scene=178&amp;cur_album_id=1619465081568673792#rd)、[readr](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247489655&amp;idx=1&amp;sn=0fb004c7434066ef8777749670a47879&amp;chksm=ea24e793dd536e856e19476a2c2807e271d94503de6f81a455761d8543087cb6d65d781ae6b8&amp;scene=178&amp;cur_album_id=1619465081568673792#rd)、[dplyr](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247489765&amp;idx=1&amp;sn=d0651af5888d682fda8543cda55848f2&amp;chksm=ea24e701dd536e1777df113b653221990416cdf3ac8cd5f40389d2bb4f9685a5cf6f69dd3b1a&amp;scene=178&amp;cur_album_id=1619465081568673792#rd)、[stringr](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247490209&amp;idx=1&amp;sn=db81898d01dc87bcdf2fff2b9f5f2bae&amp;chksm=ea24e545dd536c5324ba93e0c892eeefd618782daad2147e3da17a557f6847ba41405c41080b&amp;scene=178&amp;cur_album_id=1619465081568673792#rd)、[forcats](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247490704&amp;idx=1&amp;sn=db12bce3a7f24cd5b1eacf9f32ce7735&amp;chksm=ea24e374dd536a62ec8a050bd3a1ab78bbd3c7c76934cd69e689c71e92c65ed54a2f13b5c3e4&amp;scene=178&amp;cur_album_id=1619465081568673792#rd)等
]
--

.pull-right[

#### 科研相关:

- 书籍分享
  - [Rstudio常用快捷键以及窗口操作有用技巧](http://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247487180&amp;idx=1&amp;sn=43f64d3a9859c7e12562806de901e683&amp;chksm=ea24f128dd53783e62d504190665a06cdd66432ba5532ae87b019c99a63ffa0b96e0fd4be377&amp;scene=21#wechat_redirect)
  - [R爱好者福利|免费线上资源分享 ](http://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247486437&amp;idx=1&amp;sn=93c9250cda3a467b85f12e8b750e1096&amp;chksm=ea24f401dd537d17d1004e0d8dc70d88fd503706ff3b9888d2cc4ceafc4497f114d92c4fac92&amp;scene=21#wechat_redirect)
  - [R语言数据处理120题](http://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247484633&amp;idx=1&amp;sn=09ddb4127cd8167acbb933c55b720403&amp;chksm=ea24fb3ddd53722b7531f64046c494399012237f7229ca40f68b6a24471166b22c24a17fd8f1&amp;scene=21#wechat_redirect)
  - [空气质量数据分析相关书籍](http://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247491845&amp;idx=1&amp;sn=eeb2eb4c11e5d97f5a7c69096a0d9938&amp;chksm=ea271ee1dd5097f7271cae9aa5a070ecb31d5a0bf123cb5a1eb3e3092a2ef1c1bc7d566d1169&amp;scene=21#wechat_redirect)
  
- 必备技巧
  - [推荐几个R数据可视化用的配色网站](http://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247488405&amp;idx=2&amp;sn=540f4118d1d7c94d4a77b0fc513d855d&amp;chksm=ea24ec71dd5365679340315d53e4abae0d3871313b5d60cdeb295847f2cd1a01607faeabf66b&amp;scene=21#wechat_redirect)
  - [好用又免费的文献软件 不知道这些你就OUT啦](http://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247487883&amp;idx=2&amp;sn=d78dd20986eb2eaa3efba20f3b3658af&amp;chksm=ea24ee6fdd536779bbb108cc8c73fd36ad76150bd17c68ca3c714d327f98bc363258076ca31e&amp;scene=21#wechat_redirect)
  - [一键帮你解决SCI论文语法错误—Grammarly英文润色软件](http://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247487324&amp;idx=2&amp;sn=e5b05c9a8ac9a9ea3717e12a2d75a202&amp;chksm=ea24f0b8dd5379ae3c9de7f2739460488f2f7c1ca44fcdc34fa62f8896df2762ef95e402dc79&amp;scene=21#wechat_redirect)
  - [AI不会，没关系，R可以导出PPT格式的图形啦](http://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247485653&amp;idx=2&amp;sn=8c085a31c654ed8237948fbd342c2fca&amp;chksm=ea24f731dd537e2722acee14c91c7f4a6e183480cc1e06b135476286f875cc86da2475b0b4b6&amp;scene=21#wechat_redirect)
  - [科研分享一个论文关系网络可视化网站](http://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247493088&amp;idx=1&amp;sn=1ef1c288efdd04eaeead39b8e6aa180e&amp;chksm=ea271a04dd509312ccd85f09ec67498bbba3c200b5aaf75aef1917cf3c9761a7730d5f7509a9&amp;scene=21#wechat_redirect)

]

---

class: inverse center middle


# 公众号top系列

--

```r
message("介绍下我的B站视频教程吧")
```

```
## 介绍下我的B站视频教程吧
```



---

### b站视频

.pull-left[
- [R语言可视化教程](https://www.bilibili.com/video/BV1MA411p7VR)

&lt;center&gt;&lt;img src="https://gitee.com/zhuang_liang_liang0825/other/raw/master/image-20210409134041773-20210409134229330.png" height="150px" /&gt;&lt;/center&gt;

- 公众号命令窗口输入【可视化文稿】

&lt;center&gt;&lt;img src="https://gitee.com/zhuang_liang_liang0825/other/raw/master/10421618455064_.pic_hd.jpg" height="200px" /&gt;&lt;/center&gt;

]

.pull-right[

- [R语言之Rmarkdown从入门到精通](https://www.bilibili.com/video/BV1ib4y1X7r9)

&lt;center&gt;&lt;img src="4.png" height="150px" /&gt;&lt;/center&gt;

- 公众号命令窗口输入【rmarkdown】

&lt;center&gt;&lt;img src="https://gitee.com/zhuang_liang_liang0825/other/raw/master/image-20210415105518427.png" height="180px" /&gt;&lt;/center&gt;

]

---


### 推文系列

公众号致力于分享R语言最新讯息，给大家带来保姆级教程。其主要包含**R语言基础、文档沟通、数据科学、数据可视化**等内容。

1. [1.5w字的Rmarkdown入门教程汇总](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247493762&amp;idx=1&amp;sn=b70a531122d0ee57fda44f0fbc9c742d&amp;chksm=ea271766dd509e70ab3ee360bd5a910751bda0822be9ea390269161f922dabcb0b04e849a55c&amp;token=208976211&amp;lang=zh_CN#rd)

2. [Rstudio常用快捷键以及窗口操作有用技巧](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247487180&amp;idx=1&amp;sn=43f64d3a9859c7e12562806de901e683&amp;chksm=ea24f128dd53783e62d504190665a06cdd66432ba5532ae87b019c99a63ffa0b96e0fd4be377&amp;token=208976211&amp;lang=zh_CN#rd)

3. [2021书单推荐|15本高分AI书籍，统统免费读](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247488923&amp;idx=1&amp;sn=6d4fa9385d764b8f2bb96d5a6e00ef04&amp;chksm=ea24ea7fdd536369bc89f2159c9bf7b5e6e4b97f866d1a8d45aa23c26b364e3859b65a4ed69e&amp;token=208976211&amp;lang=zh_CN#rd)

4. [Bookdown优质免费书籍分享](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247486727&amp;idx=1&amp;sn=43a9b4cdc93bd38f179230bf4f0abc2e&amp;chksm=ea24f2e3dd537bf515b3fe89f89158329479f6f550eaf58bdb24f9c83c2643753a4764154e73&amp;token=208976211&amp;lang=zh_CN#rd)

5. [esquisse包—不写代码生成ggplot图](https://mp.weixin.qq.com/s?__biz=MzI1NjUwMjQxMQ==&amp;mid=2247488200&amp;idx=1&amp;sn=3a058480b104165118975b2d908dff72&amp;chksm=ea24ed2cdd53643a9deb58069cd8d0e9933fc165994a2bb7a6f7d4651c7796b839fc781ec86d&amp;token=208976211&amp;lang=zh_CN#rd)


---

class: inverse center middle


# 做公众号的得失

--


```r
message("得 &gt; 失")
```

```
## 得 &gt; 失
```

---


.pull-left[

### 得

- 认识好多大佬，志同道合者，好多粉丝！

&gt; 希望有一天能成为该领域的小V。

- 学到很多知识

  - 如何写推文（简单易懂）
  - 如何教学（上课、录课）
  - 如何学习新知识（R前沿信息不断获取）

&gt; 探索新媒体领域，从0到1，不断突破舒适区。

- 提升时间管理

&gt; 争分夺秒（**科研、推文、健身、摄影、音乐**）。

]

.pull-right[

### 失

- 时间

- 经历

&lt;center&gt;&lt;img src="https://gitee.com/zhuang_liang_liang0825/other/raw/master/WeChat9aa27facdfdb7b360b63c8ed158af8c9.png" height="300px" /&gt;&lt;/center&gt;

]


---

class: inverse center middle

# 未来计划


```r
message("冲冲冲！")
```

---

### 未来人生轨迹




```r
library(ggplot2)
ggplot(mpg) + aes(hwy, cty, color = class) + geom_point() +
  scale_color_brewer(palette = "Set1",labels = c("科研", "身体", "家庭","爱好","...","...","...","..."),name = "类型") + labs(x = "时间",y = "贡献值")  
```

&lt;img src="personal_introduction_files/figure-html/plot-example-1.png" width="100%" /&gt;


---

### 未来展望

.pull-left[

#### 学术路程

- 研究助理（香港理工大学） —— *2021.07-2022.01*

- 顺利毕业 —— *2021.02*

- 申请博士（国外/国内？）—— *2022.04*

- 博士期间 —— *2022.09 - 未来*
]

.pull-right[

#### 公众号未来

- 统计知识（贝叶斯、多元统计、机器学习）

- R前沿信息（Rcpp、Rmarkdown拓展、tidy系列、S4）

- 专业文献解读（可靠性 + 深度学习）
]

---

class: inverse center middle


# 小编有话说


```r
message("感谢一路有你，一起见证成长")
```


每天会在*b站[庄闪闪]*开学习直播，欢迎一起学习。

---


class: center, middle


# Thanks!

Slides created via the R packages:

[**xaringan**](https://github.com/yihui/xaringan)&lt;br&gt;
[gadenbuie/xaringanthemer](https://github.com/gadenbuie/xaringanthemer)
    </textarea>
<style data-target="print-only">@media screen {.remark-slide-container{display:block;}.remark-slide-scaler{box-shadow:none;}}</style>
<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script>var slideshow = remark.create({
"slideNumberFormat": "%current%",
"highlightStyle": "github",
"highlightLines": true,
"ratio": "16:9",
"countIncrementalSlides": true
});
if (window.HTMLWidgets) slideshow.on('afterShowSlide', function (slide) {
  window.dispatchEvent(new Event('resize'));
});
(function(d) {
  var s = d.createElement("style"), r = d.querySelector(".remark-slide-scaler");
  if (!r) return;
  s.type = "text/css"; s.innerHTML = "@page {size: " + r.style.width + " " + r.style.height +"; }";
  d.head.appendChild(s);
})(document);

(function(d) {
  var el = d.getElementsByClassName("remark-slides-area");
  if (!el) return;
  var slide, slides = slideshow.getSlides(), els = el[0].children;
  for (var i = 1; i < slides.length; i++) {
    slide = slides[i];
    if (slide.properties.continued === "true" || slide.properties.count === "false") {
      els[i - 1].className += ' has-continuation';
    }
  }
  var s = d.createElement("style");
  s.type = "text/css"; s.innerHTML = "@media print { .has-continuation { display: none; } }";
  d.head.appendChild(s);
})(document);
// delete the temporary CSS (for displaying all slides initially) when the user
// starts to view slides
(function() {
  var deleted = false;
  slideshow.on('beforeShowSlide', function(slide) {
    if (deleted) return;
    var sheets = document.styleSheets, node;
    for (var i = 0; i < sheets.length; i++) {
      node = sheets[i].ownerNode;
      if (node.dataset["target"] !== "print-only") continue;
      node.parentNode.removeChild(node);
    }
    deleted = true;
  });
})();
(function() {
  "use strict"
  // Replace <script> tags in slides area to make them executable
  var scripts = document.querySelectorAll(
    '.remark-slides-area .remark-slide-container script'
  );
  if (!scripts.length) return;
  for (var i = 0; i < scripts.length; i++) {
    var s = document.createElement('script');
    var code = document.createTextNode(scripts[i].textContent);
    s.appendChild(code);
    var scriptAttrs = scripts[i].attributes;
    for (var j = 0; j < scriptAttrs.length; j++) {
      s.setAttribute(scriptAttrs[j].name, scriptAttrs[j].value);
    }
    scripts[i].parentElement.replaceChild(s, scripts[i]);
  }
})();
(function() {
  var links = document.getElementsByTagName('a');
  for (var i = 0; i < links.length; i++) {
    if (/^(https?:)?\/\//.test(links[i].getAttribute('href'))) {
      links[i].target = '_blank';
    }
  }
})();
// adds .remark-code-has-line-highlighted class to <pre> parent elements
// of code chunks containing highlighted lines with class .remark-code-line-highlighted
(function(d) {
  const hlines = d.querySelectorAll('.remark-code-line-highlighted');
  const preParents = [];
  const findPreParent = function(line, p = 0) {
    if (p > 1) return null; // traverse up no further than grandparent
    const el = line.parentElement;
    return el.tagName === "PRE" ? el : findPreParent(el, ++p);
  };

  for (let line of hlines) {
    let pre = findPreParent(line);
    if (pre && !preParents.includes(pre)) preParents.push(pre);
  }
  preParents.forEach(p => p.classList.add("remark-code-has-line-highlighted"));
})(document);</script>

<script>
slideshow._releaseMath = function(el) {
  var i, text, code, codes = el.getElementsByTagName('code');
  for (i = 0; i < codes.length;) {
    code = codes[i];
    if (code.parentNode.tagName !== 'PRE' && code.childElementCount === 0) {
      text = code.textContent;
      if (/^\\\((.|\s)+\\\)$/.test(text) || /^\\\[(.|\s)+\\\]$/.test(text) ||
          /^\$\$(.|\s)+\$\$$/.test(text) ||
          /^\\begin\{([^}]+)\}(.|\s)+\\end\{[^}]+\}$/.test(text)) {
        code.outerHTML = code.innerHTML;  // remove <code></code>
        continue;
      }
    }
    i++;
  }
};
slideshow._releaseMath(document);
</script>
<!-- dynamically load mathjax for compatibility with self-contained -->
<script>
(function () {
  var script = document.createElement('script');
  script.type = 'text/javascript';
  script.src  = 'https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-MML-AM_CHTML';
  if (location.protocol !== 'file:' && /^https?:/.test(script.src))
    script.src  = script.src.replace(/^https?:/, '');
  document.getElementsByTagName('head')[0].appendChild(script);
})();
</script>
  </body>
</html>
